package com.pi.base.constant;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class BaseConstants {
  public static String TOKEN_URL = "http://wx.qianl.top:9910/getAccessToken";
  public static String APP_QRCODE_URL = "https://api.weixin.qq.com/cgi-bin/wxaapp/createwxaqrcode?access_token=";
  //默认的OEMid
  public static String defaultOEM = "dsm";
  //线上推送队列
  public static BlockingQueue<Map<String, String>> pushBlockingQueue = new ArrayBlockingQueue<Map<String, String>>(1000);
//默认发送消息与短信的线程
  public static ExecutorService executors = Executors.newFixedThreadPool(20);
	//个推appid	
	public static final String gtAppId = "woyGEtbGqg5ipVQIxLkkrA";
//个推AppKey
	public static final String gtAppKey = "2I90eUGtr56t4mTKXeNDxA";
	
	public static final String gtMasterSecret = "BOsymSLB5h5QZ0rLkmcKYA";
	//测试用cid
	public static String gtCid = "4e1a8cd354205c83e68ef7f4efc383d4";
//个推默认host	
	public static String gtHost = "https://api.getui.com/apiex.htm";
	  
  public static Map<String, String> imgMap = new HashMap<String, String>(){
    private static final long serialVersionUID = 3545768733447678978L;
    {
      put("bmp","1");
      put("gif","2");
      put("jpeg","3");
      put("jpg","4");
      put("ico","6");
      put("png","6");      
    }
  };
//默认支持的管理员列表
  public static final List<String> developerAdminList = new ArrayList<String>() {
    private static final long serialVersionUID = 1L;
    {
      add("13757150532");
      add("18969079030");    
      add("15957373922");
      add("15958006927");
      add("18668165280"); 
      add("18358583827");
      add("13777556406");
      add("13758257830");
      add("13616732635");
    }
  };
	
  
  //短信发送常量开始
  public static final String url = "http://gw.api.taobao.com/router/rest";
  //可替换为您的沙箱环境应用的AppKey
  public static final String appkey =  "23330342";//旧版短信appkey
//  public static final String appkey =  "23694025";
  //可替换为您的沙箱环境应用的AppSecret
  public static final String secret = "8e93bd3fdabb253d08aaf6e1fb56a040";//旧版appsecket
//  public static final String secret = "c060a0c15341432833c1dc6963eee9b2";
  //短信发送返回结果预定义
  public static String RES_EMPTY_PHONENUM = "手机号码为空";
  public static String RES_SEND_SUCCEED = "0";
  public static String RES_ERR_MSGPROCESS = "发送短信出错";
  public static String RES_ERR_BUSINESSCONTROLVIOLATED = "触发业务流控";
 //短信发送常量结束
  
  public static String baseSecureRandom ="%p!%POH^4@0jOoFh";
}
